package es.usc.citius.openet.mg.tab.t5;


import android.os.Bundle;
import android.os.Message;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import es.usc.citius.openet.mg.tab.R;
import es.usc.citius.openet.mg.tab.events.EventBus;
import es.usc.citius.openet.mg.tab.events.EventBusListener;

public class Fragment5_1 extends Fragment implements EventBusListener {

	private View progressBar = null;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {

		View view = inflater.inflate(R.layout.fragment_5_1, null);
		progressBar = view.findViewById(R.id.fragment_title_pb);

		return view;
	}

	@Override
	public void onStart() {
		super.onStart();
		EventBus.getInstance().register(this);
	}

	@Override
	public void onStop() {
		super.onStop();
		EventBus.getInstance().unRegister(this);
	}

	@Override
	public void onReceive(Message event) {
		//final int eventType = Event.getEventType(event);
	}

	public void setLoadingStatus(boolean isLoading) {
		progressBar.setVisibility(isLoading ? View.VISIBLE : View.GONE);
	}

}
